find solutions to polynomial by factroing